package com.qf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 事项计划(Todolist)表实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_todolist")
public class Todolist {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer todolistId;
    //用户id
    private Integer userId;
    //类型(日,周,月,年)
    private String type;
    //是否已完成(1 已完成 0 未完成)
    private Integer status;
    //创建时间

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    //截止时间
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date  endTime;
    //计划概述
    private String summarize;
    //内容
    private String content;
}

